import {pillowRequest} from '@/base/PillowRequest';
import {Result} from '@/base/Result';
import {SleepWarning} from '@/base/model/SleepWarning';
import {Page} from '@/base/Page';


export function getSleepWarningApi(params: {
  pageIndex: number,
  pageSize: number,
  sortDirection: string,
  createBegin?: string,
  createEnd?: string,
  memberId?: number,
}): Promise<Result<Page<SleepWarning>>> {
  return pillowRequest.getPage(SleepWarning, '/api/asleep/warning', {params});
}
